<?php
/**
* @version		1.0 msTableAdres.php marum56
* @package		Joomla.Framework
* @subpackage	Table
* @copyright	Copyright (C) 2010 Open Source, All rights reserved.
*/

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
 * Tablica Właściciel
 *
 * @package 	Joomla.Framework
 * @subpackage		Table
 * @since	1.0
 */
class msTableWlasciciel extends msTable
{
	/**
	 * Numer identyfikujący grupę
	 * @var int
	 */
	var $gid		= null;

	/**
	 * Typ własności
	 * @var string
	 */
	var $pwl1			= null;

	/**
	 * Nr umowy
	 * @var string
	 */
	var $pwl2		= null;

	/**
	 * Umowa od
	 * @var string
	 */
	var $pwl3		= null;

	/**
	 * Umowa do
	 * @var string
	 */
	var $pwl4			= null;

	/**
	 * Umowa
	 * @var string
	 */
	var $pwl5			= null;
	
	/**
	 * Spółka
	 * @var string
	 */
	var $pwl6			= null;

	/**
	* @param database A database connector object
	*/
	function __construct( &$db )
	{
		parent::__construct( '#__pojazdy_wl', 'gid', $db );
	}
	

	/**
	 * Validation and filtering
	 *
	 * @return boolean True is satisfactory
	 */
	function check()
	{
/*		jimport('joomla.mail.helper');

		// Validate user information
		if (trim( $this->name ) == '') {
			$this->setError( JText::_( 'Please enter your name.' ) );
			return false;
		}

		if (trim( $this->username ) == '') {
			$this->setError( JText::_( 'Please enter a user name.') );
			return false;
		}

		if (preg_match( "#[<>\"'%;()&]#i", $this->username) || strlen(utf8_decode($this->username )) < 2) {
			$this->setError( JText::sprintf( 'VALID_AZ09', JText::_( 'Username' ), 2 ) );
			return false;
		}

		if ((trim($this->email) == "") || ! JMailHelper::isEmailAddress($this->email) ) {
			$this->setError( JText::_( 'WARNREG_MAIL' ) );
			return false;
		}
*/
		return true;
	}
	
	
}
